package com.bingxue.edu.management.education.model.entity;

import com.bingxue.edu.common.enums.CommonStatusEnum;
import com.bingxue.edu.framework.common.model.BusinessEntity;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 家长实体
 *
 * @author zq
 * @since 2024/08/19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("edu_parent")
public class Parent extends BusinessEntity {

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "手机号")
    private String mobilePhone;

    @Schema(description = "推荐人")
    private String recommender;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "用户密码")
    private String password;

    @Schema(description = "状态")
    private CommonStatusEnum status;

    @Schema(description = "备注（内部）")
    private String remark;

    @Schema(description = "最后一次登录时间")
    private LocalDateTime lastLoginTime;

    @Schema(description = "最后一次登录ip")
    private String lastLoginIp;

    @Schema(description = "最后一次登录地点")
    private String lastLoginAddress;
}
